package cn.rkylin.oms.sysreturn.dao;

import cn.rkylin.oms.sysreturn.domain.SysReturnSku;

public interface ISysReturnSkuDAO {
    int deleteByPrimaryKey(String refundSkuId);

    int insert(SysReturnSku record) throws Exception;

    int insertSelective(SysReturnSku record);

    SysReturnSku selectByPrimaryKey(String refundSkuId);

    int updateByPrimaryKeySelective(SysReturnSku record);

    int updateByPrimaryKey(SysReturnSku record);

    /**
     * insertNotExist:如果Sku不存在，则插入记录. <br/>
     *
     * @author zhanghao
     * @param sysReturnSku
     * @return int
     * @throws Exception 
     */
    int insertNotExistSku(SysReturnSku sysReturnSku) throws Exception;

    /**
     * deleteByAutoSysReturnID:根据自动退货单ID删除明细. <br/>
     *
     * @author zhanghao
     * @param returnId
     * @return
     * @throws Exception 
     */
    int deleteByAutoSysReturnID(String returnId) throws Exception;

    /**
     * deleteBySysReturnSkuID:根据自动退货单明细ID删除数据. <br/>
     *
     * @author zhanghao
     * @param returnSkuId
     * @return
     * @throws Exception
     */
    int deleteBySysReturnSkuID(String returnSkuId) throws Exception;
}